package com.ruoyi.manage.mapper;

import com.ruoyi.common.core.cg.pojo.User;
import com.ruoyi.common.core.cg.result.Queryparam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 马景昌
 * @create 2025/03/06
 * @description
 */
@Mapper
public interface UserMapper {
    List<User> pageshow(User user);

    Integer selectOrder0(Integer userId);

    Integer selectOrder1(Integer userId);


    boolean update(User user);

    User selectbyId(Integer userId);

    boolean deletebyid(Integer userId);

    boolean add(User user);

    User selectoid(Integer oid);
    boolean updatenameorphone(@Param("userId") Integer userId, @Param("name") String name, @Param("phone") String phone);

    Integer selectUserCount(Integer id);

    List<User> routerSelect(Queryparam queryparam);
}
